﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameLib.Utils;
using System.Windows.Media;
using System.Security.Policy;
using System.Windows.Media.Imaging;
using System.Reflection;
using GameLib.Serialization;

namespace Sandbox.Utils
{
/*	public class GameSerializer : DataHandler
	{
		public static void RegisterExtraGameData()
		{			
			RegisterStringConverter(typeof(ImageSource), typeof(ImageSourceStringConverter));
			RegisterStringConverter(typeof(BitmapImage), typeof(ImageSourceStringConverter));
			RegisterStringConverter(typeof(BitmapSource), typeof(ImageSourceStringConverter));

			AddAdditionalAssembly(Assembly.GetCallingAssembly());
		}

		public override void Read(object obj, string dataPath)
		{
			throw new NotImplementedException();
		}

		public override void Write(object obj, string dataPath)
		{
			throw new NotImplementedException();
		}
	}

	[StringConverter(typeof(ImageSource))]
	public class ImageSourceStringConverter : StringConverter
	{
		public static object ConvertFrom(string value)
		{
			Uri uri = new Uri(value, UriKind.Relative);
			BitmapImage image = new BitmapImage(uri);
			return image;
		}
	}*/
}
